#pragma once
#include "ThreadPool.h"
#include "Request.h"
#include "Response.h"
#include "Crypto.h"
#include "Network.h"
#include "DB.h"

#define SPACES " \t\n"

typedef struct {
    int epfd;
    int connfd;     // 和客户端连接的文件描述符
    Request req;    // 客户端的请求 
} Param;

void do_register(void* arg, Thread* thread);
void do_login(void* arg, Thread* thread);
void upload_file(void* arg, Thread* thread);
void upload_chunk(void* arg, Thread* thread);
